/**
 * 
 */
package org.cuatrovientos.loopsexercise6;

import java.util.Scanner;

/**
 * @author inigo_Alzorriz
 *
 */
public class LoopsExercise6 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		int number = 0;
		int result = 1;
		String line = "";
		
		Scanner reader = new Scanner(System.in);
		System.out.println("Enter a number: ");
		line = reader.nextLine();
		number = Integer.parseInt(line);
		
		for (int i=number; i > 1; i--) {
			result = result * i;
		}
		System.out.print("Factorial: ");
		System.out.println(result);
	}
}
